package cn.xianshu.org.mapper;

import cn.xianshu.basic.mapper.BasicMapper;
import cn.xianshu.org.domain.Employee;
import cn.xianshu.org.query.EmployeeQuery;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface EmployeeMapper extends BasicMapper<Employee> {

   /* public Employee loaById(Long id);

    public List<Employee> loadAll();

    public void remove(Long id);

    public void insert(Employee employee);

    public void update(Employee employee);

    public Integer count(EmployeeQuery query);
    public List<Employee> queryData(EmployeeQuery query);

    void Bydelete(List<Long> ids);*/

    List<Employee> queryTree();

    Employee findByUser(String username);

    Employee findByLogininfoId(Long logininfoId);
}
